package com.jyniubi.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan(basePackages = "com.jyniubi.core.mapper")
@ComponentScan(basePackages = {"com.jyniubi"})
@EnableCaching // 启用redis缓存管理
@EnableTransactionManagement
//@EnableSwagger2 // 启用Swagger 在SwaggerConfig 配置中已添加
public class CoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(CoreApplication.class,args);
    }
}
